<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>黑熊平台</title>
    <!--<link rel="stylesheet" href="../src/css/layui.css">-->
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/sweetalert/sweetalert.css">
    <link rel="stylesheet" href="/static/select2/css/select2.css">
    <link rel="stylesheet" href="/static/css/public.css">
    {% block  link %} {% endblock %}
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">黑熊平台</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>

        {% if current_user.is_authenticated %}
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img src="/static/img/hander.jpg" class="layui-nav-img">
                        {{ current_user.name }}
                    </a>
                    <dl class="layui-nav-child" style="text-align: center;">
                        <a href="">预留</a>
                        <a href="{{ url_for('auther.password') }}" lay-href="authentication/password.html">修改密码</a>
                        <a href="{{ url_for('auther.logout') }}">退出</a>
                    </dl>
                </li>
            </ul>
        {% else %}
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item"><a href="{{ url_for('auther.login') }}">登陆</a></li>
            </ul>
        {% endif %}

    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">

            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;"">防火墙映射关系</a>
                    <dl class="layui-nav-child">
                        <dd><a href="{{ url_for('fwmap.index', position='1') }}">北京-内网</a></dd>
                        <dd><a href="{{ url_for('fwmap.index', position='2') }}">廊坊-机房</a></dd>
                        <dd><a href="{{ url_for('fwmap.index', position='3') }}">腾讯云</a></dd>
                    </dl>
                </li>

                {#    <li class="layui-nav-item layui-nav-itemed">#}
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">信息管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="{{ url_for('manage.index') }}">私服</a></dd>
                        <dd><a href="javascript:;">预留二</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href=""></a></li>
            </ul>

        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="layui-fluid">
            {% block content %} {% endblock %}
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © xiong 黑熊平台
    </div>
</div>

{% block script %}
    <script src="/static/layui/layui.js"></script>
    <script src="/static/js/jQuery-3.4.1.js"></script>
    <script src="/static/bootstrap/js/bootstrap.js"></script>
    <script src="/static/sweetalert/sweetalert.js"></script>
    <script src="/static/select2/js/select2.js"></script>
    <script src="/static/js/public.js"></script>

    <script>
        //JavaScript代码区域
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>

{% endblock %}
</body>
</html>
